﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Top.ascx.cs" Inherits="CJJCH.Web.Controls.Top1" %>
<script type="text/javascript">
    function Type() {
        document.getElementById("divType").style.display = "block";
    }
    function divname(obj, lblID, FID, SID, TID, txtFID, txtSID, txtTID, name) {
        document.getElementById(lblID).innerHTML = obj
        document.getElementById("divType").style.display = "none";
        document.getElementById(txtFID).value = FID;
        document.getElementById(txtSID).value = SID;
        document.getElementById(txtTID).value = TID;
        document.getElementById(name).value = obj;
    }

    function out() {
        document.getElementById("divType").style.display = "none";
    }

    function move() {
        document.getElementById("divType").style.display = "block";
    }
</script>
<div class="MainContain">
    <div style="display: none">
        <asp:Label ID="lblName" runat="server"></asp:Label>
        <asp:TextBox ID="txtName" runat="server"></asp:TextBox>
        <asp:Label ID="lblSundryID" runat="server"></asp:Label>
        <asp:TextBox ID="txtFID" runat="server"></asp:TextBox>
        <asp:TextBox ID="txtSID" runat="server"></asp:TextBox>
        <asp:TextBox ID="txtTID" runat="server"></asp:TextBox>

    </div>
    <!--Top start-->
    <div class="Top">
        <div class="Logo">
        </div>
        <div class="TopRight">
            <div class="ContactUs Linkf12">
                ·<a href="../NotePage.aspx?firstid=8&secondid=29&thirdid=0">入会申请</a> ·<a href="../OnLineRegis.aspx?firstid=3&secondid=8&thirdid=0">网上报名</a>
                <span>·
                <asp:HyperLink ID="lnkBookShop" runat="server" Target="_blank">工程建设标准服务中心</asp:HyperLink></span>
                ·<a href="#">城建网校</a> ·<a href="../NotePage.aspx?firstid=8&secondid=30&thirdid=0">联系我们</a></div>
            <div style="color: #000000;">
                欢迎您登录！ 今天是<%=System.DateTime.Now.ToString("yyyy年MM月dd日 ddd")%>
            </div>
        </div>
    </div>
    <!--Top end-->
    <!--Menu start-->
    <div class="MainMenu">
        <div class="Menu" id="menu1" runat="server">
            <a href="../Index.aspx">首 页</a>
        </div>
        <div class="Menu" id="menu2" runat="server">
            <a href="../ListPage.aspx?firstid=1">新闻动态</a>
        </div>
        <div class="Menu" id="menu3" runat="server">
            <a href="../ListPage.aspx?firstid=2">技术标准</a>
        </div>
        <%--<div class="MenuBook">--%>
        <div class="Menu">
            <asp:HyperLink ID="lnkBook" runat="server" Target="_blank" style="font-size:13px;">工程建设标准服务中心</asp:HyperLink>
        </div>
        <div class="Menu" id="menu4" runat="server">
            <a href="../ListPage.aspx?firstid=3">教育培训</a>
        </div>
        <div class="Menu" id="menu5" runat="server">
            <a href="../ListPage.aspx?firstid=4">专家评审</a>
        </div>
        <div class="Menu" id="menu6" runat="server">
            <a href="../ListPage.aspx?firstid=5">科技推广</a>
        </div>
        <div class="Menu" id="menu7" runat="server">
            <a href="../NotePage.aspx?firstid=6">协会刊物</a>
        </div>
        <div class="Menu" id="menu8" runat="server">
            <a href="../ListPage.aspx?firstid=7">下载中心</a>
        </div>
        <div class="Menu" id="menu9" runat="server">
            <a href="../NotePage.aspx?firstid=8">关于我们</a>
        </div>
    </div>
    <div class="SearchBar">
        <div class="Left" style="float: left;">
            <div style="float: left;">
                <img src="../Image/icon_new.gif" border="0" />
                <span style="color: #ff0000;">最新书讯：</span>
            </div>
            <div id="divContainer" onmouseover="clearInterval(stimer)" onmouseout="stimer=setInterval(mar,30)"
                style="width: 400px; float: left; height: 20px; overflow: hidden; white-space: nowrap;
                margin: 0px auto;">
                <div id="scrollbar">
                    <span id="scrollcontent" class="Linkf12" style="float: left;">
                        <asp:Repeater ID="rptBookNews" runat="server" OnItemDataBound="rptBookNews_ItemDataBound">
                            <ItemTemplate>
                                <asp:HyperLink ID="lnkBook" CssClass="Linkf12" runat="server" Target="_blank"></asp:HyperLink>
                                &nbsp;&nbsp;
                            </ItemTemplate>
                        </asp:Repeater>
                    </span><span class="Linkf12" id="scrollrepeat" style="float: left; overflow: hidden;">
                    </span>
                </div>
            </div>
        </div>
        
        <div class="Right">
          
                <div style="width: 160px; height: auto; float:left; " id="div11" runat="server">
                    <div class="SelectBox" id="divSel" onclick="Type();">
                        <asp:Label ID="lblType1" runat="server" Text="请选择文章类型"></asp:Label>
                    </div>
                    <div class="Subsebox" id="divType" style="background: #ffffff; display: none; margin-top:1px; height:350px; overflow-x: hidden; overflow-y: auto;"
                     onmousemove="move();" onmouseout="out();">
                       
                        <asp:Repeater ID="rptMenu" runat="server" OnItemDataBound="rptMenu_ItemDataBound">
                            <ItemTemplate>
                                <div class="Header_Title1" id="divMenu" runat="server" style="margin: 10px 0px 10px 0px; ">
                                    <asp:HyperLink ID="lnkMenu" runat="server" CssClass="Linkf12"></asp:HyperLink>
                                </div>
                                <div class="SubMbox" style="margin-top: -10px; " id="divSubMenu" runat="server">
                                    <ul>
                                        <asp:Repeater ID="rptSubMenu" runat="server" OnItemDataBound="rptSubMenu_ItemDataBound">
                                            <ItemTemplate>
                                                <li>
                                                    <div>
                                                        &nbsp;<asp:HyperLink ID="lnkSubMenu" CssClass="Linkf12" runat="server" NavigateUrl="javascript:void(0);"></asp:HyperLink>
                                                    </div>
                                                    <div>
                                                        <asp:Repeater ID="rptTMenu" runat="server" OnItemDataBound="rptTMenu_ItemDataBound">
                                                            <ItemTemplate>
                                                                <div>
                                                                    &nbsp;|&nbsp;
                                                                    <asp:HyperLink ID="lnkTMenu" CssClass="Linkf12" runat="server" NavigateUrl="javascript:void(0);"></asp:HyperLink>
                                                                </div>
                                                            </ItemTemplate>
                                                        </asp:Repeater>
                                                    </div>
                                                </li>
                                            </ItemTemplate>
                                        </asp:Repeater>
                                    </ul>
                                </div>
                            </ItemTemplate>
                        </asp:Repeater>
                    </div>
                </div>
                 <div class="MainSearch_x1" style="width: 290px; margin: 0px 0px 0px 4px; ">
                <div class="Left">
                  <asp:TextBox ID="txtSearch" runat="server" CssClass="InputSearch_x1"></asp:TextBox>                  
                </div>
                <div class="Right" >
                    <asp:Button ID="btnSearch" runat="server" CssClass="BtnSearch_x1" 
                        onclick="btnSearch_Click" />
                </div>
            </div>
          
           
        </div>
    </div>
</div>
<script language="javascript" type="text/javascript">
    var s, s2, s3, s4, stimer;
    function sinit() {
        s = getobj("divContainer");
        s2 = getobj("scrollcontent");
        s3 = getobj("scrollrepeat");
        s4 = getobj("scrollbar");
        s4.style.width = (s2.offsetWidth * 2 + 100) + "px";
        s3.innerHTML = s2.innerHTML;
        stimer = setInterval(mar, 20)
    }
    function mar() {
        if (s2 != null && s != null) {
            if (s2.offsetWidth <= s.scrollLeft) {
                s.scrollLeft -= s2.offsetWidth;
            }
            else {
                s.scrollLeft++;
            }
        }
    }
    function getobj(id) {
        return document.getElementById(id);
    }

    window.onload = function () {
        sinit();
    } 
</script>
